package com.xgst.land.activity.check

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xgst.land.R
import com.xgst.land.bean.PDOrderDetailBean

class PDOrderDetailAdapter:BaseQuickAdapter<PDOrderDetailBean.DataBean.InventorySampleBoxListBean,BaseViewHolder>(R.layout.item_pd_detail_layout) {
    override fun convert(holder: BaseViewHolder, item: PDOrderDetailBean.DataBean.InventorySampleBoxListBean) {
        holder.setText(R.id.tvCode,"${getItemPosition(item)+1}")
        holder.setText(R.id.tvName,item.rfidSampleBox?.name)
        holder.setText(R.id.tvType,item.rfidSampleBox?.sampleCategory)
        holder.setText(R.id.tvStatus,if(item.checkStatus == 0) "未盘点" else "已盘点")
    }
}
